﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMsaster.master" AutoEventWireup="true" CodeFile="CountBookDetail.aspx.cs" Inherits="Admin_CountBookDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

     <script src="assets/js/jquery-1.10.2.js"></script>
    <!-- Bootstrap Js -->
    <script src="assets/js/bootstrap.min.js"></script>
    <!-- Metis Menu Js -->
    <script src="assets/js/jquery.metisMenu.js"></script>
    <!-- DATA TABLE SCRIPTS -->
    <script src="assets/js/dataTables/jquery.dataTables.js"></script>
   
    <script src="assets/js/dataTables/dataTables.bootstrap.js"></script>
    <script src="assets/js/model.js"></script>
    <!-- Custom Js -->
    <script src="assets/js/custom-scripts.js"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:BooksManagerSystemConnectionString %>"></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:BooksManagerSystemConnectionString %>" SelectCommand="SELECT [PublishCompanyID], [PublishCompanyName] FROM [Publish_company]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:BooksManagerSystemConnectionString %>" SelectCommand="SELECT [BookType], [TypeName] FROM [Book_Type]"></asp:SqlDataSource>
    <div id="page-wrapper">
        <div id="page-inner">
            <div class="row">
                <div class="col-md-12">
                    <h1 class="page-header">图书类别管理<small> 在这里您可以管理所有图书的类别</small>
                    </h1>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <!-- Advanced Tables -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h2>*图书条目目录</h2>
                        </div>
                        <hr />

                        <div class="panel-body">
                            <div class="panel-heading">
                            </div>
                            <div class="table-responsive">
                                <!-- 数据源开始 -->

                                <asp:GridView ID="mybookdata" class="mytablestyle table table-striped table-bordered table-hover" runat="server" DataSourceID="SqlDataSource1">
                                    <Columns>
                                        <asp:TemplateField HeaderText="选择">
                                            <ItemStyle HorizontalAlign="Center" />
                                            <ItemTemplate>
                                                <asp:CheckBox ID="CheckBox" CssClass="checkbox" runat="server" AutoPostBack="True" OnCheckedChanged="flash_Click"></asp:CheckBox>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                <!-- 数据源结束 -->
                                <br />
                                <h3 style="float: left;">* 对图书的操作：</h3>

                                 <asp:Button ID="print" CssClass="btn btn-success" Style="float: right; margin-left: 13px;" runat="server" Text="选择打印"  OnClick="print_Click" />
                                &nbsp;&nbsp;
                                 <button id="change" class="btn btn-default" runat="server" style="float: right; margin-left: 13px;" data-toggle="modal" data-target="#myModal2">修改信息</button>
                              
                               

                             



                                <script> window.onload = function asdasd() {
     $("#ContentPlaceHolder1_mybookdata tr:first").wrap("<thead></thead>");
     $("#ContentPlaceHolder1_mybookdata thead").insertBefore("#GriView1 tbody");
     $("#ContentPlaceHolder1_mybookdata").dataTable();
 }</script>
                            </div>

                        </div>


                        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:BooksManagerSystemConnectionString %>" SelectCommand="SELECT [AmerceTypeID], [AmerceName] FROM [Amerce_info]"></asp:SqlDataSource>





                        <!-- 按钮触发模态框 -->




                        <!-- 模态框（Modal） -->
                        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                            <div class="modal-dialog">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                            &times;</button>
                                        <h2 class="modal-title" id="myModalLabel">增加图书
                                        </h2>
                                    </div>
                                    <div class="modal-body">
                                        <p style="text-align: center;"><b>请输入完整的图书信息后按确定键</b></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书编号：<asp:TextBox ID="TypeID" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;"></asp:TextBox></p>


                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书书名：<asp:TextBox ID="TextBox3" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书作者：<asp:TextBox ID="TextBox4" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">上传封面：<asp:FileUpload ID="FileUpload1" CssClass="btn btn-success" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" runat="server" />
                                        </p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">封面预览：<asp:Image ID="Image1" Style="width: 180px; padding-left: 0px; height: 240px; float: right;" runat="server" /></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">出版日期：<asp:TextBox ID="TextBox5" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;"></asp:TextBox></p>

                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书类型：<asp:DropDownList ID="DropDownList1" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" DataSourceID="SqlDataSource3" DataTextField="TypeName" DataValueField="BookType"></asp:DropDownList></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书价格：<asp:TextBox ID="TextBox7" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">出  版  社：<asp:DropDownList ID="DropDownList2" runat="server" CssClass="form-control" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" DataSourceID="SqlDataSource4" DataTextField="PublishCompanyName" DataValueField="PublishCompanyID"></asp:DropDownList>
                                        </p>

                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书总数：<asp:TextBox ID="TextBox9" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">在库数量：<asp:TextBox ID="TextBox10" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">购买日期：<asp:TextBox ID="TextBox11" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">收录日期：<asp:TextBox ID="TextBox12" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">I S BN号：<asp:TextBox ID="TextBox13" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">馆藏地点：<asp:TextBox ID="TextBox14" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">索书号码：<asp:TextBox ID="TextBox15" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书目录：<asp:TextBox ID="TextBox17" CssClass="form-control" runat="server" Style="width: 460px; padding-left: 0px; height: 86px; float: right;" TextMode="MultiLine"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书摘要：<asp:TextBox ID="TextBox20" CssClass="form-control" runat="server" Style="width: 460px; padding-left: 0px; height: 86px; float: right;" TextMode="MultiLine"></asp:TextBox></p>

                                        <asp:Label ID="Label1" runat="server" Text="" ForeColor="Red"></asp:Label>




                                    </div>
                                    <div class="modal-footer">
                                        <asp:Button ID="Button3" OnClick="Match_Click" CssClass="btn btn-success" Style="height: 30px; float: right; margin-right: 20px; font-family: 'Microsoft YaHei';" runat="server" Text="快速匹配" />

                                        <button type="button" class="btn btn-default" data-dismiss="modal">
                                            关闭
                                        </button>
                                        <asp:Button ID="sureAdd" OnClick="sureAdd_Click" CssClass="btn btn-primary" Style="height: 30px; float: right; margin-right: 20px; font-family: 'Microsoft YaHei';" runat="server" Text="确认增加" />

                                    </div>
                                </div>
                                <!-- /.modal-content -->
                            </div>
                            <!-- /.modal -->
                        </div>







                        <!-- 模态框（Modal） -->
                        <div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                            <div class="modal-dialog">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                                            &times;</button>
                                        <h2 class="modal-title" id="H1">查看图书
                                        </h2>
                                    </div>
                                    <div class="modal-body">
                                        <p style="text-align: center;"><b>请输入完整的图书信息后按确定键</b></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书编号：<asp:TextBox ID="TextBox1" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" Enabled="False"></asp:TextBox></p>


                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书书名：<asp:TextBox ID="TextBox2" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" Enabled="False"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书作者：<asp:TextBox ID="TextBox6" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" Enabled="False"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">上传封面：<asp:FileUpload ID="FileUpload2" CssClass="btn btn-success" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" runat="server" />
                                        </p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">封面预览：<asp:Image ID="Image2" Style="width: 180px; padding-left: 0px; height: 240px; float: right;" runat="server" /></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">出版日期：<asp:TextBox ID="TextBox8" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" Enabled="False"></asp:TextBox></p>

                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书类型：<asp:DropDownList ID="DropDownList3" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;"  Enabled="False" DataSourceID="SqlDataSource3" DataTextField="TypeName" DataValueField="BookType"></asp:DropDownList></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书价格：<asp:TextBox ID="TextBox16" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float:  right;" Enabled="False"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">出  版  社：<asp:DropDownList ID="DropDownList4" runat="server" CssClass="form-control" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" Enabled="False" DataSourceID="SqlDataSource4" DataTextField="PublishCompanyName" DataValueField="PublishCompanyID"></asp:DropDownList>
                                        </p>

                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书总数：<asp:TextBox ID="TextBox18" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" Enabled="False"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">在库数量：<asp:TextBox ID="TextBox19" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" Enabled="False"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">购买日期：<asp:TextBox ID="TextBox21" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" Enabled="False"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">收录日期：<asp:TextBox ID="TextBox22" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" Enabled="False"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">I S BN号：<asp:TextBox ID="TextBox23" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" Enabled="False"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">馆藏地点：<asp:TextBox ID="TextBox24" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" Enabled="False"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">索书号码：<asp:TextBox ID="TextBox25" CssClass="form-control" runat="server" Style="width: 180px; padding-left: 0px; height: 30px; float: right;" Enabled="False"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书目录：<asp:TextBox ID="TextBox26" CssClass="form-control" runat="server" Style="width: 460px; padding-left: 0px; height: 86px; float: right;" Enabled="False" TextMode="MultiLine"></asp:TextBox></p>
                                        <p style="text-overflow: ellipsis; white-space: nowrap; padding-left: 20px; float: left; padding-top: 0px;">图书摘要：<asp:TextBox ID="TextBox27" CssClass="form-control" runat="server" Style="width: 460px; padding-left: 0px; height: 86px; float: right;" Enabled="False" TextMode="MultiLine"></asp:TextBox></p>

                                        <asp:Label ID="Label2" runat="server" Text="" ForeColor="Red"></asp:Label>




                                    </div>
                                    <div class="modal-footer">
                                        <!--<asp:Button ID="Button1" OnClick="Match_Click" CssClass="btn btn-success" Style="height: 30px; float: right; margin-right: 20px; font-family: 'Microsoft YaHei';" runat="server" Text="快速匹配" />
                                        -->
                                        <button type="button" class="btn btn-default" data-dismiss="modal">
                                            关闭
                                        </button>
                                      <!--    <asp:Button ID="Button4" OnClick="change_Click" CssClass="btn btn-primary" Style="height: 30px; float: right; margin-right: 20px; font-family: 'Microsoft YaHei';" runat="server" Text="确认修改" />
-->
                                    </div>
                                </div>
                                <!-- /.modal-content -->
                            </div>
                            <!-- /.modal -->
                        </div>















                        <!--End Advanced Tables -->
                    </div>

                </div>
                <!-- /. ROW  -->



            </div>

            <!-- /. PAGE INNER  -->
        </div>
        <script>
            function loadtable() {
                $("#ContentPlaceHolder1_mybookdata tr:first").wrap("<thead></thead>");
                $("#ContentPlaceHolder1_mybookdata thead").insertBefore("#GriView1 tbody");
                $("#ContentPlaceHolder1_mybookdata").dataTable();
            };
        </script>

</asp:Content>

